//
//  LocalDetailItem.m
//  MiaoTu
//
//  Created by dllo on 16/09/19
//  Copyright (c) dllo. All rights reserved.
//

#import "LocalDetailItem.h"
#import "ComRes.h"

@implementation LocalDetailItem

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"ComRes"]) {
        NSMutableArray<ComRes *> *comResArray = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            ComRes *comRes = [ComRes modelWithDic:dic];
            [comResArray addObject:comRes];
        }
        _ComRes = comResArray;
    }
}

+ (NSDictionary *)objectClassInArray{
    return @{@"ComRes" : [ComRes class]};
}

@end
